﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="leaveWord.aspx.cs" Inherits="web.leaveWord" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<%@ Register src="usercontrol/foot.ascx" tagname="foot" tagprefix="uc1" %>
<%@ Register src="usercontrol/head.ascx" tagname="head" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        
    <uc2:head ID="head1" runat="server" />
	<div style="width:930px; padding-top:5px; text-align:left;"><b>当前位置：</b><a href="/index.aspx">首页</a> &gt; 在线留言</div>
	<div style="width:930px; padding-top:20px; padding-bottom:20px;">
	<link href="../public/css/css_user.css" type="text/css" rel="stylesheet" />
    <table width="100%">
    <asp:Repeater ID="rptList" runat="server">
	<ItemTemplate>
	<tr>
	<td>
	    <table>
	    <tr><td>网友留言:</td><td><%#Eval("title")%>&nbsp;&nbsp;(<%#Eval("addtime")%>)</td></tr>
	    <tr><td></td><td><%#Eval("leavewordContent")%></td></tr>
	    <%#Eval("replyContent") != null ? "<tr><td>管理员回复</td><td>" + Eval("replyContent").ToString() + "</td></tr>" : ""%>
	    </table>
	</td>
	</tr>
	</ItemTemplate>
	</asp:Repeater>
	<tr><td colspan="10">
		<webdiyer:AspNetPager ID="anp" runat="server"  onpagechanged="anp_PageChanged" 
		FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
		</webdiyer:AspNetPager>
		</td>
	</tr>
    </table>
    
	<table width="100%" border="0" cellspacing="0" cellpadding="2">
		<tr>
			<td height="35" colspan="2" align="left" bgcolor="#F7F7F7">
				<strong><font color="#000000">请填写您的留言信息( * 为必填)</font></strong></td>
		</tr>
		<tr>
			<td height="1" colspan="2" align="right" background="../public/images/dian.gif">
			</td>
		</tr>
		<tr>
			<td width="15%" height="35" align="right">
				<strong><font color="#009900"> 
				
				*
				
				留言人姓名：</font></strong></td>
			<td width="85%" align="left">
				    <input name="txt_Leaveword_messagerName" type="text" runat="server" id="txt_Leaveword_messagerName" />
				<font color="#999999">请您填写您的姓名</font>
		  </td>
		</tr>
		<tr>
			<td width="15%" height="35" align="right">
				<strong><font color="#009900"> 
				
				*
				
				EMail：</font></strong></td>
			<td width="85%" align="left">
				    <input name="txt_Leaveword_messagerEmail" type="text" runat="server" id="txt_Leaveword_messagerEmail" />
				<font color="#999999">请您填写正确的E-mail </font>
		  </td>
		</tr>
		<tr>
			<td width="15%" height="35" align="right">
				<strong><font color="#009900"> 
				
				*
				
				联系电话：</font></strong></td>
			<td width="85%" align="left">
				    <input name="txt_Leaveword_messagerTel" type="text" runat="server" id="txt_Leaveword_messagerTel" />
				<font color="#999999">请您填写正确的联系电话以便于及时沟通</font>
		  </td>
		</tr>
		<tr>
			<td width="15%" height="35" align="right">
				<strong><font color="#009900"> 
				
				*
				
				留言标题：</font></strong></td>
			<td width="85%" align="left">
				       <input name="txt_Leaveword_title" type="text" runat="server" id="txt_Leaveword_title" />
				<font color="#999999"></font>
		  </td>
		</tr>
		<tr>
			<td width="15%" height="35" align="right">
				<strong><font color="#009900"> 
				
				*
				
				留言内容：</font></strong></td>
			<td width="85%" align="left">
										<textarea  runat="server" id="txt_Leaveword_leavewordContent"  cols="40" name="S1" rows="4"></textarea>
				<font color="#999999"></font>
		  </td>
		</tr>

		<tr>
			<td height="40" colspan="2" align="center" bgcolor="#F7F7F7">
                <asp:Button ID="btnSubmit" runat="server" Text=" 提交留言 " 
                    onclick="btnSubmit_Click" />
			</td>
		</tr>
</table>

</div>
	
<uc1:foot ID="foot1" runat="server" />
    </center>
    </form>
</body>
</html>
